const mongoose = require('mongoose');
const Schema = mongoose.Schema;

const nodeSchema = new Schema({
  value: Number,
  description: String,
  sector: Array,
  belong: {
    type: Schema.Types.ObjectId,
    ref: 'Date'
  }
});

module.exports = mongoose.model('Node', nodeSchema);